package com.usooft.metaTalent.core.system.mapper;

import com.usooft.metaTalent.core.system.entity.Role;
import com.usooft.metaTalent.core.system.query.RoleQuery;
import com.usooft.metaTalent.core.system.wrapper.RoleWrapper;
import java.lang.Long;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface RoleMapper {
    int add(Role role);

    int update(Role role);

    Role get(Long id);

    List<RoleWrapper> list(RoleQuery query);

    int count(@Param("filter") RoleQuery.Filter filter);
}
